//
//  TopScreenView.h
//  NaRiLSVMT
//
//  Created by jmsre on 14-8-19.
//  Copyright (c) 2014年 helloyouth.org. All rights reserved.
//

#import <UIKit/UIKit.h>


//屏幕展示 btn  view
@class TopScreenView;
@protocol TopScreenViewDelegate <NSObject>

@optional

- (void)HandleTapScreenButton:(id)viewController ScreenIndex:(NSNumber *)num;

- (void)HandleTapScreenButtonForFlowControl:(id)viewController ScreenIndex:(NSNumber *)num;

@end


@interface TopScreenView : UIScrollView
{
    NSArray *nameArray;
    NSInteger userSelectedChannelID;        //点击按钮选择名字ID
    NSInteger scrollViewSelectedChannelID;  //滑动列表选择名字ID
    
//    UIImageView *shadowImageView;   //选中阴影

}


Assign  id<TopScreenViewDelegate> delagateTopScreenForTap;


@property (nonatomic, retain) NSArray *nameArray;

@property(nonatomic,retain)NSMutableArray *buttonOriginXArray;
@property(nonatomic,retain)NSMutableArray *buttonWithArray;

@property (nonatomic, assign) NSInteger scrollViewSelectedChannelID;

//+ (TopScreenView *)shareInstance;


/**
 *  加载顶部标签
 */
- (void)initWithNameButtons;
/**
 *  滑动撤销选中按钮
 */
- (void)setButtonUnSelect;
/**
 *  滑动选择按钮
 */
- (void)setButtonSelect;




@end
